<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-flag" data-rule="" class="form-control selectpicker" multiple="" name="row[category_id]">
                {foreach name="categories" item="vo"}
                <option value="{$vo->id}" {in name="vo.id" value="$row.category_id"}selected{/in}>{$vo->title}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Intro')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-intro" class="form-control" name="row[intro]" type="text" value="{$row.intro|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="" class="form-control" name="row[weigh]" type="number" min="0" value="{$row.weigh}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('可选服务项目')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            {foreach name="services" item="vo"}-->
<!--                <div class="checkbox">-->
<!--                    <div class="col-sm-3">-->
<!--                        <label for="row[service_id]-{$vo->id}">-->
<!--                            <input type="checkbox" id="row[service_id]-{$vo->id}" name="row[service][]" value="{$vo->id}" {if in_array($vo->id, $design_service_ids)}checked{/if}>{$vo->service_name}-->
<!--                        </label>-->
<!--                    </div>-->
<!--                    <label for="">-->
<!--                        服务价格：￥ <input id="c-price" data-rule="required"  name="row[service_price][{$vo->id}]" type="number" min="0" value="{if in_array($vo->id, $design_service_ids)}{$service_prices[$vo->id]}{else}{$vo->service_price}{/if}"> 元-->
<!--                    </label>-->
<!--                    <label for="">-->
<!--                        划线价格：￥ <input id="c-line_price" data-rule="required"  name="row[line_price][{$vo->id}]" type="number" min="0" value="{if in_array($vo->id, $design_service_ids)}{$line_prices[$vo->id]}{else}{$vo->line_price}{/if}"> 元-->
<!--                    </label>-->

<!--                </div>-->
<!--            {/foreach}-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Service_count')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-service_count" data-rule="required" class="form-control" name="row[service_count]" type="number" value="{$row.service_count|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
